package com.jnzc.ocr.serv.shop.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotations.TableField;
import com.jnzc.ocr.common.bean.Tree;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description = "商品列表")
public class ShopGoods {

	@ApiModelProperty(value = "ID")
	private Long id;
	@ApiModelProperty(value = "店铺ID")
	private Long shopId;
	@ApiModelProperty(value = "供应商ID")
	private Long supplierId;
	@ApiModelProperty(value = "分类ID")
	private Long categoryId;
	@ApiModelProperty(value = "编号")
	private String no;
	@ApiModelProperty(value = "名称")
	private String name;
	@ApiModelProperty(value = "主图")
	private String imageUrl;
	@ApiModelProperty(value = "价格")
	private BigDecimal price;
	@ApiModelProperty(value = "库存是否不足")
	private Boolean ifLowStock;
	@ApiModelProperty(value = "是否上架")
	private Boolean ifOnSale;
	@ApiModelProperty(value = "更新时间")
	private Date updateTime;
	@ApiModelProperty(value = "创建时间")
	private Date createTime;
	@ApiModelProperty(value = "库存数量")
	private Integer stockNum;
	@ApiModelProperty(value = "销售数量")
	private Integer saleNum;

	@ApiModelProperty(value = "属性")
	@TableField(exist = false)
	private List<Tree<ShopProductAttr>> attrList;
	@ApiModelProperty(value = "SKU")
	@TableField(exist = false)
	private List<ShopGoodsSku> skuList;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getShopId() {
		return shopId;
	}

	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}

	public Long getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(Long supplierId) {
		this.supplierId = supplierId;
	}

	public Long getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getStockNum() {
		return stockNum;
	}

	public void setStockNum(Integer stockNum) {
		this.stockNum = stockNum;
	}

	public Integer getSaleNum() {
		return saleNum;
	}

	public void setSaleNum(Integer saleNum) {
		this.saleNum = saleNum;
	}

	public List<Tree<ShopProductAttr>> getAttrList() {
		return attrList;
	}

	public void setAttrList(List<Tree<ShopProductAttr>> attrList) {
		this.attrList = attrList;
	}

	public List<ShopGoodsSku> getSkuList() {
		return skuList;
	}

	public void setSkuList(List<ShopGoodsSku> skuList) {
		this.skuList = skuList;
	}

	public Boolean getIfLowStock() {
		return ifLowStock;
	}

	public void setIfLowStock(Boolean ifLowStock) {
		this.ifLowStock = ifLowStock;
	}

	public Boolean getIfOnSale() {
		return ifOnSale;
	}

	public void setIfOnSale(Boolean ifOnSale) {
		this.ifOnSale = ifOnSale;
	}
}
